{% extends "web/base.html" %}
{% block title %}Book List{% endblock %}
{% block content %}
    <h1>Book List</h1>
    {% for book in books %}
    <div><a href="/accountList?book={{book.key.urlsafe()}}">{{book.name}}</a></div>
    {% endfor %}
    <form action="/bookCreate" method="post">
    	Name: <input type="text" name="name" />
    	<input type="submit" value="Save" />
    </form>
    <h1>Other Books</h1>
    {% for userKey in booksByUser.keys() %}
    {% for book in booksByUser[userKey] %}
    <div><a href="/accountList?book={{book.key.urlsafe()}}">{{userKey and userKey.get().nickname() or ''}}: {{book.name}}</a></div>
    {% endfor %}
    {% endfor %}
{% endblock %}